package com.woniuxy.feignclient;

import com.alibaba.nacos.shaded.io.grpc.Context;
import com.woniuxy.entity.Storage;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.http.ResponseEntity;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;

import java.util.List;

@FeignClient(name = "storage-service")
public interface StorageFeignClient {
    @PostMapping("/storage/deduct")
    public ResponseEntity<String> deduct(@RequestBody List<Storage> itemsList) ;
}
